﻿#ifndef VIDEOLAYOUTCONFIG_H
#define VIDEOLAYOUTCONFIG_H

#include <QWidget>

namespace Ui {
class VideoLayoutConfig;
}

class VideoLayoutConfig : public QWidget
{
    Q_OBJECT

public:
    explicit VideoLayoutConfig(QWidget *parent = Q_NULLPTR);
    ~VideoLayoutConfig();

    void initConfig(qint8 mode, int row, int column, int videoCount);
    void getConfig(qint8 &mode, int &row, int &column);
private slots:
    void on_radio_default_toggled(bool checked);

    void on_spin_column_valueChanged(int columnCount);

    void on_spin_row_valueChanged(int rowCount);

    void on_buttonBox_accepted();
    void on_buttonBox_rejected();
signals:
    void Ended(bool changed);
private:
    Ui::VideoLayoutConfig *ui;

    qint8 mode;
    int row;
    int column;
    int videoCount;
};

#endif // VIDEOLAYOUTCONFIG_H
